/**
 * Created by 余保林 on 2017/8/18.
 */
import {Modal} from 'iview'

export function isConfirm (msg, onOk) {
  Modal.confirm({
    title: '确认提示',
    content: msg,
    onOk
  })
}

export function getIdList (data) {
  let ids = []
  data.forEach(item => {
    ids.push(item.id)
  })
  return ids
}
